package com.dong.settlement.web;

import com.dong.settlement.dao.SettlementDao;
import com.dong.settlement.po.SettlementPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private SettlementDao settlementDao;
    @GetMapping("/save")
    public void testInsert() {
        log.info("save start");
        SettlementPO po = new SettlementPO();
        po.setOrderId(123);
        settlementDao.insert(po);
        log.warn("save finished");
    }
}
